Cocktail Help Reference
AllInCache Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > IRepository<T> Interface : AllInCache Method



orderBy
Optional sorting function to sort the returned list of entities.
fetchOptions
Optional delegate to specify additional fetching options.

Glossary Item Box

Retrieves all entities from the cache.

Syntax

Visual Basic (Declaration) 
Function AllInCache( _
   Optional ByVal orderBy As Func(Of IQueryable(Of T),IOrderedQueryable(Of T)), _
   Optional ByVal fetchOptions As Action(Of IFetchOptions(Of T)) _
) As IEnumerable(Of T)
Visual Basic (Usage)Copy Code
Dim instance As IRepository(Of T)
Dim orderBy As Func(Of IQueryable(Of T),IOrderedQueryable(Of T))
Dim fetchOptions As Action(Of IFetchOptions(Of T))
Dim value As IEnumerable(Of T)
 
value = instance.AllInCache(orderBy, fetchOptions)

Parameters

orderBy
Optional sorting function to sort the returned list of entities.
fetchOptions
Optional delegate to specify additional fetching options.

Return Value

The list of retrieved entities.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.